package com.liner.homework.second;

public class Chick extends Animal{
    public Chick(String name, String color, int age) {
        super(name, color, age);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color+ name +"正在吃虫子...");
    }

    void layEggs(){
        System.out.println(age + "岁的" + color+ name +"正在孵蛋...");
    }
}
